package com.zjw.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * (Note)实体类
 *
 * @author 翟
 * @since 2025-04-03 11:21:28
 */
public class Note implements Serializable {
    private static final long serialVersionUID = 761768626357728654L;
    /**
     * 存储笔记编号
     */
    private Integer noteId;
    /**
     * 笔记标题
     */
    private String noteTitle;
    /**
     * 创建日期
     */
    private Date noteCreationDate;
    /**
     * 笔记内容
     */
    private String noteContent;

    public Note(String noteTitle, Date noteCreationDate, String noteContent) {
        this.noteTitle = noteTitle;
        this.noteCreationDate = noteCreationDate;
        this.noteContent = noteContent;
    }

    public Note() {
    }

    public Integer getNoteId() {
        return noteId;
    }

    public void setNoteId(Integer noteId) {
        this.noteId = noteId;
    }

    public String getNoteTitle() {
        return noteTitle;
    }

    public void setNoteTitle(String noteTitle) {
        this.noteTitle = noteTitle;
    }

    public Date getNoteCreationDate() {
        return noteCreationDate;
    }

    public void setNoteCreationDate(Date noteCreationDate) {
        this.noteCreationDate = noteCreationDate;
    }

    public String getNoteContent() {
        return noteContent;
    }

    public void setNoteContent(String noteContent) {
        this.noteContent = noteContent;
    }

    @Override
    public String toString() {
        return noteId
                + "." + noteTitle;
    }
}

